//
//  KSRefundDetailTableViewCell.swift
//  Supermarket
//
//  Created by liuxm on 2017/9/30.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit

/// 退款详情
class KSRefundDetailTableViewCell: UITableViewCell {

    @IBOutlet weak var goodsImage: UIImageView!
    @IBOutlet weak var goodsName: UILabel!
    @IBOutlet weak var goodsSku: UILabel!
    @IBOutlet weak var goodsNumber: UILabel!
    @IBOutlet weak var goodsMoney: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    func setDataWithModel(model: KSOrderRefundDetailDataGoodsModel) {
        goodsImage.sd_setImage(with: URL.init(string: model.goods_image!), placeholderImage: UIImage.init(named: "Common_GoodsPlace"))
        goodsName.text = model.goods_name
        goodsNumber.text = "退货数：" + "\(Int(model.number))"
        goodsMoney.text = "退款：" + "\(Int(model.refund_money))"
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
